<script setup>
import { ref } from "vue";
import Son from "./components/Son.vue";
const money = ref(16000)
const car = ref("宝马")
const changeMoney = (val) => {
    money.value += val
}
</script>

<template>
    <h1>我是父组件</h1>
    <Son :money="money" :car="car" @changeMoney="changeMoney"></Son>
</template>
